<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.thymeleat.org/thymeleaf-extras-shiro" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <link href="../resources/favicon.ico" rel="shortcut icon" th:href="@{/static/favicon.ico}">
</head>
<body>


<div th:if="${session.account != null}">
    <span th:text="${session.account.username} + '欢迎回来！'"></span>
    <a href="/loginout" style="color: red" th:text="退出"> </a>
    <h1><a href="/main">main</a>
        <a href="/manage" shiro:hasPermission="manage"> | manage</a>
        <a href="/administrator" shiro:hasRole="admin"> | administrator</a>
    </h1>
</div>
</body>
</html>
